<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!-- 引入struts标签库 -->
<%@taglib uri="/struts-tags" prefix="s" %>
            
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ECSHOP 管理中心 - 部门列表 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>


    <%--<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>--%>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

    <!-- bootstrap -->
    <link href="/css/bootstrap/bootstrap.css" rel="stylesheet"/>
    <link href="/css/bootstrap/bootstrap-responsive.css" rel="stylesheet"/>
    <link href="/css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet"/>

    <!-- libraries -->
    <link href="/css/lib/jquery-ui-1.10.2.custom.css" rel="stylesheet" type="text/css"/>
    <link href="/css/lib/font-awesome.css" type="text/css" rel="stylesheet"/>

    <!-- global styles -->
    <link rel="stylesheet" type="text/css" href="/css/layout.css"/>
    <link rel="stylesheet" type="text/css" href="/css/elements.css"/>
    <link rel="stylesheet" type="text/css" href="/css/icons.css"/>

    <!-- this page specific styles -->
    <link rel="stylesheet" href="/css/compiled/index.css" type="text/css" media="screen"/>

    <!-- open sans font -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800'
          rel='stylesheet' type='text/css'/>

    <!-- lato font -->
    <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900,300italic,400italic,700italic,900italic'
          rel='stylesheet' type='text/css'/>

    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

</head>
<body>


<form method="post" action="" name="listForm" onsubmit="">
    <div class="table-wrapper orders-table section">
        <div class="row-fluid head">
            <div class="span12">
                <h4>部门列表</h4>
            </div>
        </div>
        <div class="row-fluid filter-block">
            <form action="" name="searchForm">
                <div class="pull-right">
                    <div class="btn-group pull-right">
                        <button  class="glow middle large">搜索</button>
                    </div>
                    <input type="text" class="search order-search" placeholder="输入关键字搜索" />
                </div>
            </form>
            <span class="btn-flat success new-product"><a href="${path}/dept_viewEdit.action">添加分类</a></span>
        </div>
        <div class="row-fluid">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th class="span2" style="text-align: center">
                        编号
                    </th>
                    <th class="span3" style="text-align: center">
                    部门名称
                    </th>
                    <th class="span3" style="text-align: center">
                        <span class="line"></span>
                        负责人
                    </th>
                    <th class="span3" style="text-align: center">
                        <span class="line"></span>
                        操作
                    </th>
                </tr>
                </thead>
                <tbody>


                <!-- 使用struts迭代标签遍历结果 -->

                <s:iterator var="department" value="#request.listDepartment">

                <tr>
                    <td  style="text-align: center"><s:property value="#department.id"/></td>
                    <td  style="text-align: center"><s:property value="#department.departmentName"/></td>
                    <td  style="text-align: center"><s:property value="#department.manager"/></td>
                    <td  style="text-align: center">
                        <s:a href="dept_viewEdit.action?department.id=%{#department.id}">编辑</s:a> |
                        <s:a href="dept_delete.action?department.id=%{#department.id}">删除</s:a> |
                    </td>
                </tr>
                </s:iterator>
            </table>
        </div>
    </div>
    </div>
</form>

<div style="text-align: center" i>
    共执行 7 个查询，用时 0.028849 秒，Gzip 已禁用，内存占用 3.219 MB<br />
    版权所有 &copy; 2018-2019 yjxsy1996，并保留所有权利。</div>
</body>
</html>

